/**
 * index
 * 样式入口，引入其他所有基础style的定义，并提供一些公用的css
 */

@import "./variables.less";
@import "./transition.less";
@import "./view-design.less";
@import "./sidebar.less";
@import "./mixins.less";
@import "./util.less";
@import "./demo.less";
@import "./fc.less";
@import "./order.less";
@import "./dispatch.less";
@import "./account.less";

html,
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #f5f7f9;
  font-size: 12px;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

label {
  font-weight: 500;
}

html {
  height: 100%;
  box-sizing: border-box;
}

.H100 {
    height: 100%
}

#app {
  height: 100%;
  min-height: auto;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
ul li {
  list-style: none;
}
div:focus {
  outline: none;
}

// no padding
.no-padding {
  padding: 0px !important;
}
select {
  text-transform: none;
  appearance: none;
  outline: none;
}
/* 清除浮动 */
.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: "";
    clear: both;
    height: 0;
  }
}

/* 文字颜色样式 */

.text-primary {
  color: @text-primary-color;
}

.text-success {
  color: @text-success-color;
}

.text-warning {
  color: @text-warning-color;
}

.text-error {
  color: @text-error-color;
}

.text-title {
  color: @text-title-color;
}

.text-normal {
  color: @text-normal-color;
}

.text-desc {
  color: @text-desc-color;
}
.text-disabled {
  color: @text-disabled-color;
}

/* 错误异常页面样式 */
.error-container {
  display: flex;
  justify-content: center;
  height: 80%;
  align-items: center;
  min-height: 640px;
  .error-image {
    width: 430px;
    height: 430px;
    max-width: 100%;
  }
  .error-content {
    padding-left: 80px;
    h1 {
      color: @text-normal-color;
      font-size: 72px;
      font-weight: 600;
      line-height: 72px;
      margin-bottom: 16px;
    }
    .desc {
      color: @text-desc-color;
      font-size: 20px;
      line-height: 20px;
      margin-bottom: 24px;
    }
  }
}

/* 框架标准的列表页面样式 */
.app-container {
  .main-container {
    // background: #fff;
    padding: 10px 0 ;
    border-radius: 2px;
    .header-box {
      padding: 0 15px;
      display: flex;
      justify-content: space-between;
      .el-tabs__item {
        padding: 0 8px;
        height: 35px;
        line-height: 35px;
        font-size: 12px;
        .el-form-item__label {
          font-size: 12px;
        }
      }
      // 查询条件
      .search-box {
        .ivu-input-wrapper,
        .ivu-select,
        .ivu-btn {
          margin-right: 8px;
          margin-bottom: 5px;
        }
        .ivu-date-picker {
          margin-right: 8px;
        }
      }
    }
    // table-表格列表
    .table-box {
      margin-top: 10px;
      /deep/.vxe-table--filter-body {
        min-height: 300px;
      }
    }
    // pagination-分页
    .pagination-box {
      text-align: right;
      padding-top: 10px;
    }
  }
  .kz-el-tabs{
    .el-tabs__item {
      padding: 0 18px;
      height: 35px;
      line-height: 35px;
      font-size: 12px;
    }
    .el-tabs--border-card>.el-tabs__content {
      padding: 0;
    }
    .search-box {
      .el-form-item {
        margin-bottom: 5px;
      }
    }
    .table-box {
      .ivu-table {
        font-size: 12px;
        .ivu-table-cell {
          padding-left: 0;
          padding-right: 0;
        }
        .ivu-table-header,
        .ivu-table-fixed-header {
          th {
            padding: 5px 0;
          }
        }
        .ivu-table-tbody {
          td {
            height: 30px;
          }
        }

      }
    }
  }
}
.el-calendar-table .el-calendar-day {
  position: relative;
  min-height: 80px;
}
.pk-dialog {
  .pkcalendar {
    .el-calendar__header {
      padding: 0;
    }
    .el-calendar__body {
      padding: 15px 0;
    }
    .el-calendar-table td.is-selected {
      background-color: #9fe1a7;
    }
    .el-calendar-table .el-calendar-day:hover {
      background-color: #9fe1a7;
    }
    .calendar-day {
      position: relative;
      z-index: 10;
    }
    .calendar-cont,
    .calendar-cont-selected {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0px;
      left: 0px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .calendar-cont {
      background-color: red;
      color: rgb(255, 255, 255);
    }
    .calendar-cont-selected {
      background-color: transparent;
    }
  }
}
.vertical-center-modal{
  position: absolute;
  right: 0;
}
.warning-row {
  background: oldlace !important;
}
.success-row {
  background: #f0f9eb !important;
}
.showFront {
  z-index: 3000 !important;
}
.kz-dialog {
  border-radius: unset!important;
  // position: relative;
  // left: -200px;
  .ivu-modal-content {
    position: absolute;
    width: 1100px !important;
    left: -200px;
  }
  .tabsdiv {
    .ivu-tabs-bar {
      margin-bottom: 0;
      padding: 6px 0;
      .ivu-tabs-nav-right {
        padding: 0 15px 0 0;
        height: 32px !important;
        font-size: 12px;
        .ivu-dropdown-item {
          font-size: 12px !important;
        }
      }
    }
    .ivu-tabs-nav-container .ivu-tabs-ink-bar {
      width: 81px !important;
    }
    .invitation-box {
      height: 53vh;
      overflow: auto;
      padding: 10px;
      background-color: #f2f4f5;
      .box-card {
        margin-bottom: 10px;
        .ivu-card-head {
          padding: 10px 16px;
          p {
            color: #666;
            font-size: 14px;
          }
        }
        .ivu-card-extra {
          .ivu-btn-group {
            .ivu-btn {
              &:first-child {
                border-bottom-right-radius: 0;
                border-top-right-radius: 0;
              }
              &:last-child {
                border-bottom-left-radius: 0;
                border-top-left-radius: 0;
              }
            }
          }
        }
        .ivu-card-body {
          .ivu-row {
            position: relative;
          }
          .ivu-form-item {
            font-size: 12px !important;
            .ivu-form-item-label {
              font-size: 12px;
            }
            .ivu-date-picker {
              width: 100%;
            }
            .ivu-form-item-content {
              font-size: 12px;
              .ivu-input-icon {
                font-size: 12px;
              }
              .ivu-select {
                font-size: 12px;
              }
              .ivu-select-item {
                font-size: 12px !important;
              }
              .ivu-select-placeholder,
              .ivu-select-selected-value{
                font-size: 12px;
              }
            }
            .ivu-btn {
              margin-top: 23px;
            }
            .ivu-cascader .ivu-cascader-menu-item,.ivu-input {
              font-size: 12px !important;
            }
          }
          .ivu-form-item-required .ivu-form-item-label:before {
            font-size: 12px;
          }
        }
      }
    }
    .edit-box {
      height: 51.5vh;
      overflow: auto;
      padding: 10px;
      background-color: #fff;
      .mf0 {
        .ivu-form-item-content {
          margin-left: 0 !important;
        }
      }
      .ivu-form-item {
        font-size: 12px !important;
        .ivu-form-item-label {
          font-size: 12px;
        }
        .ivu-form-item-content {
          // margin-left: 0 !important;
          font-size: 12px;
          .ivu-select {
            font-size: 12px;
          }
          .ivu-select-item {
            font-size: 12px !important;
          }
          .ivu-select-placeholder,
          .ivu-select-selected-value{
            font-size: 12px;
          }
        }
        .ivu-btn {
          margin-top: 23px;
        }
        .ivu-cascader .ivu-cascader-menu-item,.ivu-input {
          font-size: 12px !important;
        }
      }
    }
    .ivu-table {
      font-size: 12px;
    }
  }
  .el-dialog__header {
    padding: 0;
    // border-bottom: 1px solid #d9d9d9;
    .el-dialog__headerbtn {
      top: 8px;
      right: 10px;
    }
  }
  .el-dialog__body {
    height: 640px;
    overflow: hidden;
    padding: 10px 0;
    .ivu-tabs-nav-container {
      font-size: 12px;
      .ivu-tabs-ink-bar {
        height: 1px;
        width: 48px !important;
      }
      .ivu-tabs-nav .ivu-tabs-tab {
        padding: 5px 12px;
      }
    }
  }
  .el-dialog__footer {
    padding: 0;
  }
  .el-form-item {
    margin-bottom: 8px;
  }
  .footer-tool {
    .el-tabs__item {
      padding: 0 10px;
      height: 30px;
      line-height: 30px;
    }
    .el-tabs__content {
      margin-top: 6px;
    }
  }
}
.kz-drawer,
.kz-dialog {
  .ql-editor {
    font-size: 30px;
    color: #333;
  }
}
.kz-drawer {
  .el-drawer__header {
    padding: 10px 0 0;
    margin-bottom: 0;
    .ivu-tabs-bar {
      margin-bottom: 0;
    }
  }
  .el-drawer__close-btn {
      z-index: 1;
      position: absolute;
      right: 15px;
      top: 8px;
      overflow: hidden;
      cursor: pointer
  }
  .ivu-tabs-nav-container {
    font-size: 12px;
  }
  .el-drawer__body {
      position: static;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      -webkit-box-flex: 1;
      -ms-flex: 1;
      flex: 1;
      padding: 0;
      height: auto;
      .el-form-item__label,
      .el-form-item__content{
        font-size: 12px;
      }
      .el-select-dropdown__item,
      .ivu-input,
      .ivu-cascader .ivu-cascader-menu-item{
        font-size: 12px !important;
      }
      .ivu-form-item-content {
        font-size: 12px;
        .ivu-input-group {
          display: table;
          width: 100%;
          border-collapse: separate;
          position: relative;
          font-size: 12px;
          .ivu-input {
            font-size: 12px;
          }
          .ivu-select {
            font-size: 12px;
            .ivu-select-selected-value {
              font-size: 12px;
            }
          }
          .ivu-select-placeholder {
            font-size: 12px;
          }
        }
      }
      .el-alert--success.is-light {
        border: 1px solid #7aceff;
        background-color: #e6f7ff;
        color: #415058;
      }
      .remarksitem {
        .el-form-item__content {
          width: 100%;
        }
      }
      .imgremark {
        .el-form-item  {
          display: flex;
          flex-direction: column;
          .el-form-item__label {
            text-align: left;
          }
        }
      }
  }
}
.preview-dialog {
  position: relative;
  height: 80vh;
  .el-dialog__body {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
  }
  .imagePreview {
    max-width: 100%;
    max-height: 100%;
  }
}
.el-radio.is-bordered.is-checked {
  border-color: transparent;
}
.tool-appoint {
  .el-cascader,
  .el-input__icon,
  .el-input__inner {
    height: 30px;
    line-height: 30px;
  }
  .el-input__inner {
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    &:focus {
      border: 0;
    }
  }
  .el-button--small,
  .el-button {
    border-radius: 0;
  }
}
.ql-container {
  min-height: 60px;
}
.myMessageClass {
  z-index: 30000 !important;
}
.ps {
  position: relative;
}
.ivu-timeline-item-content {
  font-size: 12px;
}
.CM_LAYOUT {
  height: 100vh;
  background-color: rgba(226,236,237,.5);
}
.CM_HEADER {
    position: relative;
    color: #5b6b70;
    background-color: #fff;
    background-image: -webkit-gradient(linear,right top,left top,from(#eee),color-stop(5%,hsla(0,0%,100%,0)),color-stop(95%,hsla(0,0%,100%,0)),to(#eee));
    background-image: linear-gradient(270deg,#eee 0,hsla(0,0%,100%,0) 5%,hsla(0,0%,100%,0) 95%,#eee);
    z-index: 1000;
    .i-layout-navbar {
      height: auto;
    }
}

.CM_HEADER:after {
    content: "";
    position: absolute;
    top: 0;
    right: 30px;
    left: 30px;
    height: 100%;
    -webkit-box-shadow: 0 6px 0 rgba(0,0,0,.02);
    box-shadow: 0 6px 0 rgba(0,0,0,.02);
    border-radius: 0 0 4px 4px
}

.CM_HEADER:before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: -webkit-gradient(linear,left top,right top,color-stop(85%,hsla(0,0%,100%,0)),color-stop(95%,rgba(3,249,213,.3)),to(hsla(0,0%,100%,0)));
    background: linear-gradient(90deg,hsla(0,0%,100%,0) 85%,rgba(3,249,213,.3) 95%,hsla(0,0%,100%,0))
}

.CM_HEADER .wrap {
    position: relative;
    z-index: 1;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    height: 50px;
    border-radius: 0 0 2px 2px
}
.CM_HEADER_MENU {
  flex: 1;
  margin: 0 auto 0 20px;
}
.CM_HEADER_MENU .ivu-menu-horizontal {
    height: 50px;
    line-height: 50px
}
.CM_DRAWER_BODY {
  padding: 15px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: auto;
}
.el-upload--picture-card,
.el-upload-list__item,{
  position: relative;
  width: 60px !important;
  height: 60px !important;
  line-height: 60px;
  .el-upload-list__item-thumbnail {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
  }
}
.el-icon-camera,
.el-icon-zoom-in,
.el-icon-delete {
  &:before {
    font-size: 14px;
  }
}
.ivu-modal {
    .ivu-form {
      .ivu-form-item-label {
        font-size: 12px;
      }
      .ivu-form-item-content {
        .ivu-input,
        .ivu-select-item,
        .ivu-input-icon,
        .ivu-select-placeholder,
        .ivu-select-selected-value {
          font-size: 12px !important;
        }
      }
      .ivu-form-item-label div span {
          display: inline-block;
          color: #999;
          -webkit-transform: scaleX(.9) scaleY(.9);
          transform: scaleX(.9) scaleY(.9);
          -webkit-transform-origin: left center;
          transform-origin: left center
      }
    }
  }
.birthdate {
  .ivu-form-item-content {
    margin-left: 0 !important;
  }
}
